import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
// 引入mutations
import { state, mutations, getters } from "./mutations"

// 引入modules子模块
import actions from "./actions"
import cate from "./modules/cate"
import goodsSpec from "./modules/goodsSpec"
import goodsManager from "./modules/goodsManager"
import vip from "./modules/vip"
import banners from "./modules/banners"
import seckill from "./modules/seckill"
export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules: {
    cate,
    goodsSpec,
    goodsManager,
    vip,
    banners,
    seckill,
  }
})
